package com.iwinding.ladygg.constant;

/**
 * Created by hezhiyong on 2017/5/2.
 */

public interface BluetoothConstants {

//    int SERVICE_UUID = 0xFFF0;
//    int FEATURES_UUID = 0xFFF6;
//    String PASSWORD = "123456";

    long TIME_OUT = 50000L;

    //命令
    interface CMD {
//        byte CMD_HEAD = HexStringUtil.charToByteString("55");
//        byte CMD_MID = HexStringUtil.charToByteString("10");
//        byte CMD_END = HexStringUtil.charToByteString("AA");
//
//        byte CMD_HANDSHAKE = 0x00;//1、握手
//        byte CMD_KEY3 = 0x01;//2、按键3状态
//        byte CMD_DIRECTION_ANGLE = 0x02;//3、方向改变角度
//        byte CMD_POWER = 0x03;//4、电池电量
//        byte CMD_VOLUME_MODIFY = 0x04;//5、修改报警音量
//        byte CMD_VOLUME_MODIFY_RE = HexStringUtil.charToByteString("FF");//5、修改报警音量
        String CMD_HEAD = "55";
        String CMD_MID = "10";
        String CMD_END = "AA";

        String CMD_HANDSHAKE = "00";//1、握手
        String CMD_KEY3 = "01";//2、按键3状态
        String CMD_DIRECTION_ANGLE = "02";//3、方向改变角度
        String CMD_POWER = "03";//4、电池电量
        String CMD_VOLUME_MODIFY = "04";//5、修改报警音量
        String CMD_VOLUME_MODIFY_RE = "FF";//5、修改报警音量
    }

    //设备状态
    interface DeviceStatus {

        byte HANDSHAKE_FAIL = 0x00;//连接失败
        byte HANDSHAKE_OK = 0x01;//连接成功

        byte KEY3_NOT_PRESS = 0x00;//key3未按下
        byte KEY3_PRESS = 0x01;//key3按下

        byte DIRECTION_NO_ALARM = 0x00;//角度未报警
        byte DIRECTION_ALARM = 0x01;//角度报警

        byte LOW_BATTERY_NO_TIPS = 0x00;//低电量未提示
        byte LOW_BATTERY_TIPS = 0x01;//低电量提示

        byte VOLUME_01 = 0x01;//音量０１
        byte VOLUME_02 = 0x02;//音量０２
        byte VOLUME_03 = 0x03;//音量０３
        byte VOLUME_04 = 0x04;//音量０４
        byte VOLUME_05 = 0x05;//音量０５

    }

}
